package script;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.opera.OperaDriver;
import org.testng.annotations.Test;

import java.io.File;
import java.io.IOException;

public class test1 {


    @Test
    public void testcase1() throws IOException {
        // Assert.assertTrue(false);
        System.out.println("testcase1");
      /*  String drivername = "webdriver.chrome.driver";
       String driverpath="D:\\\\soft\\\\test\\\\selenium3\\\\driver\\\\operadriver.exe";

        //String driverpath = new File("./").getCanonicalPath() + "/src/test/java/driver/operadriver.exe";
        System.setProperty(drivername, driverpath);
       */
        System.setProperty("webdriver.opera.driver", "D:\\soft\\test\\selenium3\\driver\\operadriver.exe");

        WebDriver wd = new OperaDriver();
        wd.get("http://www.baidu.com");


    }
}